/* 商品详情容器 */
.product-detail-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* 商品画廊 */
.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: border 0.3s;
}

.thumbnail-list img:hover {
    border-color: #ff0036;
}

/* 商品信息 */
.product-info {
    padding: 20px 0;
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.current-price {
    font-size: 28px;
    color: #ff0036;
    font-weight: bold;
    margin-right: 15px;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.discount {
    background-color: #ff0036;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* 商品规格 */
.product-spec {
    margin-bottom: 30px;
}

.spec-item {
    margin-bottom: 20px;
}

.spec-item span {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

.spec-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spec-options button {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.spec-options button:hover {
    border-color: #ff0036;
    color: #ff0036;
}

.spec-options button.active {
    background-color: #ff0036;
    color: white;
    border-color: #ff0036;
}

/* 数量选择 */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-selector span {
    margin-right: 20px;
    font-weight: bold;
    color: #555;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.quantity-control button:hover {
    background-color: #e0e0e0;
}

.quantity-control input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    font-size: 16px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.add-to-cart, .buy-now {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart {
    background-color: #ff0036;
    color: white;
}

.add-to-cart:hover {
    background-color: #e60033;
}

.buy-now {
    background-color: #ff9500;
    color: white;
}

.buy-now:hover {
    background-color: #e68600;
}

/* 商品描述 */
.product-desc {
    grid-column: 1 / -1;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-desc h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.desc-content {
    line-height: 1.8;
    color: #555;
}

.desc-content p {
    margin-bottom: 15px;
}

.desc-content img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 4px;
}